package org.restorator.dao.base;

import org.restorator.entity.User;
import org.restorator.exception.DataStoreException;

public interface UserDao extends GenericDao<User, Integer> {

    User getUserByOrderId(int orderId) throws DataStoreException;

    /**
     * Find user entity by login and password.
     *
     * @param password
     * @param login
     * @return
     * @throws DataStoreException
     */
    User getUserByLoginAndPass(String password, String login) throws DataStoreException;

    /**
     *
     * @param key
     * @return
     * @throws DataStoreException
     */
    User getUserByKey (String key) throws DataStoreException;
}
